Creating an .htaccess file? [closed]

Posted by Sandeep on Server Fault See other posts from Server Fault or by Sandeep
Published on 2012-11-23T11:36:04Z Indexed on 2012/11/23 17:09 UTC
Read the original article Hit count: 136

Filed under:

How to create an .htaccess file? Is it required to restart the server after creating an .htaccess file?

RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 200
RewriteBase 
# unsupported directive: [ISAPI_Rewrite]

RewriteCond %{HTTP:Host} ^xxx\.com$
RewriteRule (.*) http\://www.xxxx.com$1 [NC,R=301,U]
RewriteRule ^/main.html$ http\://www.xxx.com/index.cfm [NC,R=301,U]

ErrorDocument 404 /Errors.htm

Thanks in advance.

© Server Fault or respective owner

Related posts about .htaccess